Micron Document
🌎 rns.kin.earth git 🌍

Node / dev / reticulum / commits / d32ba8c

Commit d32ba8c1a17d2b244bc201b2c0cbcda4f7a1d7c1


Parents : ff3a722
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-08-27T21:04:40+02:00

Fixed inconsistency against advertised return type

Changes

1 files changed, 6 insertions(+), 4 deletions(-)


Diff

diff --git a/RNS/Identity.py b/RNS/Identity.py
index 64720151..2f5e4a1e 100644
--- a/RNS/Identity.py
+++ b/RNS/Identity.py
@@ -759,9 +759,7 @@ class Identity:
return True
except Exception as e:
- raise e
- RNS.log("Failed to load identity key", RNS.LOG_ERROR)
- RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
+ RNS.log(f"Failed to load identity key, the contained exception was: {e}", RNS.LOG_ERROR)
return False
def load_public_key(self, pub_bytes):
@@ -779,8 +777,12 @@ class Identity:
self.sig_pub = Ed25519PublicKey.from_public_bytes(self.sig_pub_bytes)
self.update_hashes()
+
+ return True
+
except Exception as e:
- RNS.log("Error while loading public key, the contained exception was: "+str(e), RNS.LOG_ERROR)
+ RNS.log(f"Error while loading public key, the contained exception was: {e}", RNS.LOG_ERROR)
+ return False
def update_hashes(self):
self.hash = Identity.truncated_hash(self.get_public_key())

Served by rngit 1.5.2 - Generated in 0.03s